export function parselrc(lrc) {
    const reg = /\[(\d{2}):(\d{2})\.(\d{2,3})\]/
    const lrcs = []
    const music = lrc.split("\n")
        //console.log(music)
    for (let value of music) {
        if (value) {
            let aa = reg.exec(value)
                // console.log(aa)
            const time1 = aa[1] * 60 * 1000
            const time2 = aa[2] * 1000
            const time3 = aa[3].length === 3 ? aa[3] * 1 : aa[3] * 10
            const time = time1 + time2 + time3
            const content = value.replace(reg, "").trim()
            lrcs.push({ "time": time, content })
        }
    }
    //console.log(lrcs)
    return lrcs

}